<template>
  <div class="box">
     <Left></Left>
     <Right></Right>
  </div>
</template>
<!--
  vue3事件总线方式进行兄弟组件传值
  1、下载依赖包:yarn add mitt
  2、创建总线对象:创建bus.ts
  import mitt from 'mitt'
  const bus=mitt()
  export deault bus
  3、发送信息
  bus.emit(key,值)
  4、接收信息
  bus.on(key,(arg)=>{})
-->
<script lang='ts' setup>
  import Left from './components/Left.vue';
  import Right from './components/Right.vue';
</script>

<style lang='scss' scoped>
.box{
  display: flex;
}
</style>